﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using DoAnASP;

namespace DoAnASP
{
    public class BUS_ThongTinSP
    {
        public DataTable LoadTTSP_masp(int masp)
        {
            DAO_ThongTinSP busTT = new DAO_ThongTinSP();
            return busTT.TTSP_masp(masp);
        }

        public void CapNhat_ThongTinSP(DTO_ThongTinSP tt)
        {
            DAO_ThongTinSP daoTT = new DAO_ThongTinSP();
            daoTT.Capnhat_ThongTinSp(tt);
        }

        public DataTable ChiTiet_SP(int masp)
        {
            DAO_ThongTinSP daoTT = new DAO_ThongTinSP();
            DataTable DT = new DataTable();

           DT =  daoTT.ChiTiet_SP(masp);
           return DT;
        }
    }
}
